﻿using System.ComponentModel.DataAnnotations;

namespace IMES.Common.Dtos
{
	/// <summary>
	/// 接受参数
	/// </summary>
	public class WorkDataDto : Audit
	{
		/// <summary>
		/// 工单编号
		/// </summary>
		[MaxLength(50)]
		public string WorkSheetNumber { get; set; }
		/// <summary>
		/// 产品编号
		/// </summary> 
		public string ProductNumber { get; set; }
		/// <summary>
		/// 计划数
		/// </summary>
		[Range(0, int.MaxValue)]
		public int Numberofpackages { get; set; }

		/// <summary>
		/// 计划开始时间
		/// </summary> 
		public DateTime? ScheduledStartTime { get; set; }
		/// <summary>
		/// 计划结束时间
		/// </summary> 
		public DateTime? ScheduledEndTime { get; set; }
		/// <summary>
		/// 开始时间
		/// </summary> 
		public DateTime? StartTime { get; set; }
		/// <summary>
		/// 结束时间
		/// </summary> 
		public DateTime? EndTime { get; set; }
		/// <summary>
		/// 状态
		/// </summary>
		public WorkSheetState State { get; set; }
		/// <summary>
		/// 备注
		/// </summary>
		public string? Remark { get; set; }
		/// <summary>
		/// 任务编号
		/// </summary>
		public string TaskIds { get; set; }
		/// <summary>
		/// 产品关联单据
		/// </summary>
		public string? ProductRelatedDocuments { get; set; }
	}
}
